package dper.study.codes.elasticsearch.api;

import dper.study.codes.elasticsearch.model.AuthorModel;
import dper.study.codes.elasticsearch.model.GitRepoModel;
import org.elasticsearch.action.bulk.BulkResponse;
import org.elasticsearch.action.suggest.SuggestResponse;

import java.util.List;

/**
 * Created by leichen on 2017/3/13.
 */
public interface GitInfoESAPI {
    BulkResponse indexGitRepoModel(List<GitRepoModel> gitRepoModelList) ;
    BulkResponse indexAuthorModel(List<AuthorModel> authorModelList) ;

    SuggestResponse getGitRepoNameAutoCompletion(String gitRepoNamePrefix) ;
}
